<?php
namespace app\upgrade\controller;

use app\upgrade\common\Common;

class Index
{
    public function index()
    {
        $root_Path = "../";
        $folder = "upgrade";
        $name = "../upgrade_temp/backup_".md5(time()).".zip";
        echo "正在检查合法性\n";
        echo $name;
        echo @Common::backup_zip($root_Path,$name,$folder);
        //echo @Common::getRoot();
        
    }

}
